#!/bin/bash
host=$1
usrCount=$2
for i in $(seq 1 $usrCount); do
	echo " Fires the $i th batch (with 2) data! "
 	curl -k -X 'POST'  -d '{"tcid":"key1", "data":"{\"data\":\"This is for testing.....\"}"}'  -H 'Content-type: application/json'    http://$host:8888/api/flushws -L -w  "%{http_code}"
 	curl -k -X 'POST'  -d '{"tcid":"key2", "data":"{\"data\":\"This is for testing.....\"}"}'  -H 'Content-type: application/json'    http://$host:8888/api/flushws -L -w  "%{http_code}"
done

